From 79e0b9479d3d37940fdbff83183daaeafacbe668 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Mon, 22 Feb 2010 18:47:22 +0000 Subject: [PATCH] python: Don't install anything directly under /usr/share Signed-off-by: Guillaume Rousse --- tools/python/Makefile | 4 ++-- tools/python/xen/xm/xenapi_create.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/python/Makefile b/tools/python/Makefile index 6fa4d5b00e..7dfc45948d 100644 --- a/tools/python/Makefile +++ b/tools/python/Makefile @@ -63,8 +63,8 @@ install: install-messages install-dtd $(PYTHON_PREFIX_ARG) --root="$(DESTDIR)" --force install-dtd: all - $(INSTALL_DIR) $(DESTDIR)$(SHAREDIR) - $(INSTALL_DATA) xen/xm/create.dtd $(DESTDIR)$(SHAREDIR) + $(INSTALL_DIR) $(DESTDIR)$(SHAREDIR)/xen + $(INSTALL_DATA) xen/xm/create.dtd $(DESTDIR)$(SHAREDIR)/xen install-messages: all set -e; if which $(MSGFMT) >/dev/null ; then \ diff --git a/tools/python/xen/xm/xenapi_create.py b/tools/python/xen/xm/xenapi_create.py index 4c0177b4aa..e56be76393 100644 --- a/tools/python/xen/xm/xenapi_create.py +++ b/tools/python/xen/xm/xenapi_create.py @@ -78,7 +78,7 @@ class xenapi_create: def __init__(self): self.DEFAULT_STORAGE_REPOSITORY = get_default_SR() - self.dtd = join(SHAREDIR, "create.dtd") + self.dtd = join(SHAREDIR, "xen", "create.dtd") def create(self, filename=None, document=None, skipdtd=False): """ -- 2.30.2